import request from '@/utils/request'

// 查询货币涨幅列表
export function listMoneyPriceUpdown(query) {
  return request({
    url: '/money/moneyPriceUpdown/list',
    method: 'get',
    params: query
  })
}

// 查询货币涨幅详细
export function getMoneyPriceUpdown(id) {
  return request({
    url: '/money/moneyPriceUpdown/' + id,
    method: 'get'
  })
}

// 新增货币涨幅
export function addMoneyPriceUpdown(data) {
  return request({
    url: '/money/moneyPriceUpdown',
    method: 'post',
    data: data
  })
}

// 修改货币涨幅
export function updateMoneyPriceUpdown(data) {
  return request({
    url: '/money/moneyPriceUpdown',
    method: 'put',
    data: data
  })
}

// 删除货币涨幅
export function delMoneyPriceUpdown(id) {
  return request({
    url: '/money/moneyPriceUpdown/' + id,
    method: 'delete'
  })
}
